import { Rule } from "./types";

export const flake8ExecutableRuleList: Rule[] = [
    {
        code: "EXE001",
        name: "shebang-not-executable",
        descEn: "Shebang is present but file is not executable",
        descCn: "",
        autoFix: false,
    },
    {
        code: "EXE002",
        name: "shebang-missing-executable-file",
        descEn: "The file is executable but no shebang is present",
        descCn: "",
        autoFix: false,
    },
    {
        code: "EXE003",
        name: "shebang-missing-python",
        descEn: "Shebang should contain python",
        descCn: "",
        autoFix: false,
    },
    {
        code: "EXE004",
        name: "shebang-leading-whitespace",
        descEn: "Avoid whitespace before shebang",
        descCn: "",
        autoFix: true,
    },
    {
        code: "EXE005",
        name: "shebang-not-first-line",
        descEn: "Shebang should be at the beginning of the file",
        descCn: "",
        autoFix: false,
    },
];